﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;


namespace Library
{
    public class AppEnvironment
    {
        public static string ConnStr
        {
            get
            {
                if (ConfigurationManager.ConnectionStrings["ConnectionString"] == null)
                {
                    throw (new Exception("Not exist 'ConnectionString'\nPlease check your webconfig"));
                }
                else
                {
                    return ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
                }
            }
        }


        public static string SESSION_ADMIN_ID;
        public static string SESSION_ADMIN_NAME;
        public static string SESSION_USER_ID;
        public static string SESSION_USER_NAME;
    }
}
